package com.example.service;

import com.example.pojo.Question;

import java.util.List;

public interface QuestionService {
    List<Question> getAllQuestions();

    Question getQuestionById(Integer id);

    void saveQuestion(Question question);

    boolean checkAnswer(Integer id, Integer answerIndex);
}
